<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://corejsf.com/validator">

<f:view>
<f:loadBundle var="text" basename="#{ygzcForm.bundleName}"/>
    <head>
        <title>#{text['ygzcDetail.title']}</title>
        <meta name="heading" content="#{text['ygzcDetail.heading']}"/>
        <style type="text/css">
            .jscalendar-DB-div-style {
                position: absolute;
                margin-top: -120px;
                margin-left: -508px;
            }
    </style>
    </head>
<body id="ygzcForm">

<h:form id="ygzcForm" onsubmit="return validateYgzcForm(this)">



<h:inputHidden value="#{ygzcForm.ygzc.id}" id="id"/>
<h:inputHidden value="#{ygzcForm.ygzc.version}" id="version"/>

<h:panelGrid columns="6">
   
     <h:outputLabel styleClass="desc" for="username" value="#{text['ygzc.username']}"/>
    <t:message for="username" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="username" value="#{ygzcForm.ygzc.username}" required="false" maxlength="50">
    </h:inputText>
    
    <h:outputLabel styleClass="desc" for="cjzc" value="#{text['ygzc.cjzc']}"/>
    <t:message for="cjzc" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="cjzc" value="#{ygzcForm.ygzc.cjzc}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="cjzcbl" value="#{text['ygzc.cjzcbl']}"/>
    <t:message for="cjzcbl" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="cjzcbl" value="#{ygzcForm.ygzc.cjzcbl}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="gjzc" value="#{text['ygzc.gjzc']}"/>
    <t:message for="gjzc" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="gjzc" value="#{ygzcForm.ygzc.gjzc}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="gjzcbl" value="#{text['ygzc.gjzcbl']}"/>
    <t:message for="gjzcbl" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="gjzcbl" value="#{ygzcForm.ygzc.gjzcbl}" required="false" maxlength="255">
    </h:inputText>
   
   
   
    <h:outputLabel styleClass="desc" for="zjzc" value="#{text['ygzc.zjzc']}"/>
    <t:message for="zjzc" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="zjzc" value="#{ygzcForm.ygzc.zjzc}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="zjzcbl" value="#{text['ygzc.zjzcbl']}"/>
    <t:message for="zjzcbl" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="zjzcbl" value="#{ygzcForm.ygzc.zjzcbl}" required="false" maxlength="255">
    </h:inputText>

</h:panelGrid>
  <h:panelGroup styleClass="buttonBar bottom">
        <h:commandButton value="#{text['button.save']}" action="#{ygzcForm.save}" id="save" styleClass="button"/>

        <c:if test="${not empty ygzcForm.ygzc.id}">
        <h:commandButton value="#{text['button.delete']}" action="#{ygzcForm.delete}"
            id="delete" styleClass="button" onclick="bCancel=true; return confirmDelete('Ygzc')"/>
        </c:if>

        <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true"
            id="cancel" styleClass="button" onclick="bCancel=true"/>
    </h:panelGroup>
</h:form>

<v:validatorScript functionName="validateYgzcForm"/>

<script type="text/javascript">
    //Form.focusFirstElement($('ygzcForm'));
    highlightFormElements();
</script>

</body>
</f:view>
</html><!--

 <h:outputLabel styleClass="desc" for="id" value="#{text['ygzc.id']}"/>
    <h:inputText styleClass="text medium" id="id" value="#{ygzcForm.ygzc.id}" required="true">
        <v:commonsValidator type="required" arg="#{text['ygzc.id']}"/>
    </h:inputText>
    <t:message for="id" styleClass="fieldError"/>
    
 <h:outputLabel styleClass="desc" for="operation" value="#{text['ygzc.operation']}"/>
    <t:message for="operation" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="operation" value="#{ygzcForm.ygzc.operation}" required="false" maxlength="20">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="optdate" value="#{text['ygzc.optdate']}"/>
    <t:message for="optdate" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="optdate" value="#{ygzcForm.ygzc.optdate}" required="false" maxlength="23">
    </h:inputText>

 <h:selectOneMenu value="#{ygzcForm.ygzc.jbqk}" id="jbqk" required="false" styleClass="select">
        <f:selectItems value="#{ygzcForm.ygzc.jbqk}"/>
    </h:selectOneMenu>
-->